package com.amsp.oa.oademo.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@TableName("yijipgb")
@ApiModel(value = "一级评估输出指引表")
public class Yijipgb {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("培训课程名称")
    private String courseName;

    @ApiModelProperty("日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate courseDate;

    @ApiModelProperty("学员姓名")
    private String studentName;

    @ApiModelProperty("学员工号")
    private String studentId;

    @ApiModelProperty("学员部门")
    private String studentDepartment;

    @ApiModelProperty("学员直接上级")
    private String studentSupervisor;

    @ApiModelProperty("内容评分(JSON格式存储问题答案)")
    private String contentScore;

    @ApiModelProperty("培训总体评分")
    private Integer overallRating;

    @ApiModelProperty("意见")
    private String opinions;

    @ApiModelProperty("考核题目")
    private String examQuestion;

    @ApiModelProperty("学员作答")
    private String studentAnswer;

    @ApiModelProperty("合格标准")
    private String passingCriteria;

    @ApiModelProperty("讲师阅卷评价")
    private String lecturerEvaluation;

    @ApiModelProperty("讲师签名")
    private String lecturerSignature;

    @ApiModelProperty("学员直接上级签名")
    private String supervisorSignature;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableLogic
    @ApiModelProperty("是否删除")
    private Boolean deleted;
}